package com.yonyou.ncmm_pac_pda;

import com.yonyou.uap.um.application.ApplicationContext;
import com.yonyou.uap.um.base.*;
import com.yonyou.uap.um.common.*;
import com.yonyou.uap.um.third.*;
import com.yonyou.uap.um.control.*;
import com.yonyou.uap.um.core.*;
import com.yonyou.uap.um.binder.*;
import com.yonyou.uap.um.runtime.*;
import com.yonyou.uap.um.lexer.*;
import com.yonyou.uap.um.widget.*;
import com.yonyou.uap.um.widget.UmpSlidingLayout.SlidingViewType;
import com.yonyou.uap.um.log.ULog;
import java.util.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import android.webkit.*;
import android.content.*;
import android.graphics.*;
import android.widget.ImageView.ScaleType;

public abstract class TwoDCodeConfigActivity extends UMWindowActivity {

	protected UMWindow TwoDCodeConfig = null;
protected XVerticalLayout viewPage0 = null;
protected XHorizontalLayout navigatorbar0 = null;
protected UMButton button0 = null;
protected UMLabel label0 = null;
protected UMLabel label13 = null;
protected XHorizontalLayout panel8 = null;
protected UMLabel label12 = null;
protected UMTextbox textbox4 = null;
protected UMLabel label14 = null;
protected XHorizontalLayout panel1 = null;
protected UMLabel label2 = null;
protected UMTextbox textbox1 = null;
protected XHorizontalLayout panel2 = null;
protected UMLabel label3 = null;
protected UMTextbox textbox2 = null;
protected XHorizontalLayout panel3 = null;
protected UMLabel label4 = null;
protected UMTextbox textbox3 = null;
protected UMLabel label5 = null;
protected XHorizontalLayout panel6 = null;
protected UMLabel label8 = null;
protected UMTextbox textbox6 = null;
protected XHorizontalLayout panel7 = null;
protected UMLabel label9 = null;
protected UMTextbox textbox7 = null;
protected UMLabel label10 = null;
protected UMButton button1 = null;
protected UMLabel label11 = null;

	
	protected final static int ID_TWODCODECONFIG = 504743670;
protected final static int ID_VIEWPAGE0 = 21038069;
protected final static int ID_NAVIGATORBAR0 = 389709322;
protected final static int ID_BUTTON0 = 889909635;
protected final static int ID_LABEL0 = 458984945;
protected final static int ID_LABEL13 = 76385972;
protected final static int ID_PANEL8 = 223646325;
protected final static int ID_LABEL12 = 413082509;
protected final static int ID_TEXTBOX4 = 675977942;
protected final static int ID_LABEL14 = 1226862567;
protected final static int ID_PANEL1 = 404857485;
protected final static int ID_LABEL2 = 150587408;
protected final static int ID_TEXTBOX1 = 1606449642;
protected final static int ID_PANEL2 = 1670629042;
protected final static int ID_LABEL3 = 911092036;
protected final static int ID_TEXTBOX2 = 1617853029;
protected final static int ID_PANEL3 = 1585307472;
protected final static int ID_LABEL4 = 1354073684;
protected final static int ID_TEXTBOX3 = 45338512;
protected final static int ID_LABEL5 = 1605452450;
protected final static int ID_PANEL6 = 639766416;
protected final static int ID_LABEL8 = 1185702708;
protected final static int ID_TEXTBOX6 = 496047040;
protected final static int ID_PANEL7 = 328334973;
protected final static int ID_LABEL9 = 87403887;
protected final static int ID_TEXTBOX7 = 1636649325;
protected final static int ID_LABEL10 = 32880610;
protected final static int ID_BUTTON1 = 990960729;
protected final static int ID_LABEL11 = 1093005216;

	
	
	@Override
	public String getControllerName() {
		return "TwoDCodeConfigController";
	}
	
	@Override
	public String getContextName() {
		return "";
	}

	@Override
	public String getNameSpace() {
		return "com.yonyou.ncmm_pac_pda";
	}

	protected void onCreate(Bundle savedInstanceState) {
		ULog.logLC("onCreate", this);
		super.onCreate(savedInstanceState);
        onInit(savedInstanceState);
        
	}
	
	@Override
	protected void onStart() {
		ULog.logLC("onStart", this);
		
		super.onStart();
	}

	@Override
	protected void onRestart() {
		ULog.logLC("onRestart", this);
		
		super.onRestart();
	}

	@Override
	protected void onResume() {
		ULog.logLC("onResume", this);
		
		super.onResume();
	}

	@Override
	protected void onPause() {
		ULog.logLC("onPause", this);
		
		super.onPause();
	}

	@Override
	protected void onStop() {
		ULog.logLC("onStop", this);
		
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		ULog.logLC("onDestroy", this);
		
		super.onDestroy();
	}
	
	public  void onInit(Bundle savedInstanceState) {
		ULog.logLC("onInit", this);
		UMActivity context = this;
		registerControl();
		this.getContainer();
		
		/*
		 new Thread() {
			 public void run() {
				 UMPDebugClient.startServer();
			 }
		 }.start();
		*/
		String sys_debug = ApplicationContext.getCurrent(this).getValue("sys_debug");
		if (sys_debug != null && sys_debug.equalsIgnoreCase("true")) {
			UMPDebugClient.waitForDebug();
		}

		IBinderGroup binderGroup = this;
		currentPage = getCurrentWindow(context, binderGroup);
super.setContentView(currentPage);

		
	}
	
	private void registerControl() {
		  idmap.put("TwoDCodeConfig",ID_TWODCODECONFIG);
  idmap.put("viewPage0",ID_VIEWPAGE0);
  idmap.put("navigatorbar0",ID_NAVIGATORBAR0);
  idmap.put("button0",ID_BUTTON0);
  idmap.put("label0",ID_LABEL0);
  idmap.put("label13",ID_LABEL13);
  idmap.put("panel8",ID_PANEL8);
  idmap.put("label12",ID_LABEL12);
  idmap.put("textbox4",ID_TEXTBOX4);
  idmap.put("label14",ID_LABEL14);
  idmap.put("panel1",ID_PANEL1);
  idmap.put("label2",ID_LABEL2);
  idmap.put("textbox1",ID_TEXTBOX1);
  idmap.put("panel2",ID_PANEL2);
  idmap.put("label3",ID_LABEL3);
  idmap.put("textbox2",ID_TEXTBOX2);
  idmap.put("panel3",ID_PANEL3);
  idmap.put("label4",ID_LABEL4);
  idmap.put("textbox3",ID_TEXTBOX3);
  idmap.put("label5",ID_LABEL5);
  idmap.put("panel6",ID_PANEL6);
  idmap.put("label8",ID_LABEL8);
  idmap.put("textbox6",ID_TEXTBOX6);
  idmap.put("panel7",ID_PANEL7);
  idmap.put("label9",ID_LABEL9);
  idmap.put("textbox7",ID_TEXTBOX7);
  idmap.put("label10",ID_LABEL10);
  idmap.put("button1",ID_BUTTON1);
  idmap.put("label11",ID_LABEL11);

	}
	
	public void onLoad() {
		ULog.logLC("onLoad", this);
		if(currentPage!=null) {
			currentPage.onLoad();
		}
	
		{ //viewPage0 - action:viewpage0_onload
    UMEventArgs args = new UMEventArgs(TwoDCodeConfigActivity.this);
    actionViewpage0_onload(viewPage0,args);

}

	}
	
	public void onDatabinding() {
		ULog.logLC("onDatabinding", this);
		super.onDatabinding();
		
	}
	
	@Override
	public void onReturn(String methodName, Object returnValue) {
		
	}

	@Override
	public void onAfterInit() {
		ULog.logLC("onAfterInit", this);
		
		onLoad();
	}
	
		@Override
	public Map<String,String> getPlugout(String id) {
		XJSON from = this.getUMContext();
		Map<String,String> r = super.getPlugout(id);
		
		return r;	
	}
	
	
	
	public View getNavigatorbar0View(final UMActivity context,IBinderGroup binderGroup) {
navigatorbar0 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_NAVIGATORBAR0
,"color","#323232"
,"padding-left","8"
,"font-size","17"
,"valign","center"
,"title","打印样式设置"
,"width","fill"
,"font-family","default"
,"background-image","navbar_login.png"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","8"
,"height","44.0"
);
button0 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BUTTON0
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"onclick","action:button0_onclick"
,"width","44"
,"font-size","20"
,"font-family","default"
,"valign","center"
,"background-image","icon_back.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
navigatorbar0.addView(button0);
label0 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL0
,"width","0"
,"weight","1"
,"valign","center"
,"font-family","default"
,"layout-type","hbox"
,"halign","center"
,"height","fill"
);
navigatorbar0.addView(label0);

return navigatorbar0;
}
public View getPanel8View(final UMActivity context,IBinderGroup binderGroup) {
panel8 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL8
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label12 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL12
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","打印长度"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel8.addView(label12);
textbox4 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX4
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入打印长度"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel8.addView(textbox4);

return panel8;
}
public View getPanel1View(final UMActivity context,IBinderGroup binderGroup) {
panel1 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL1
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label2 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL2
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","水平开始位置"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel1.addView(label2);
textbox1 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX1
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入水平位置"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel1.addView(textbox1);

return panel1;
}
public View getPanel2View(final UMActivity context,IBinderGroup binderGroup) {
panel2 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL2
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label3 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL3
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","垂直开始位置"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel2.addView(label3);
textbox2 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX2
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入垂直位置"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel2.addView(textbox2);

return panel2;
}
public View getPanel3View(final UMActivity context,IBinderGroup binderGroup) {
panel3 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL3
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label4 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL4
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","放大倍数"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel3.addView(label4);
textbox3 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX3
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入放大倍数"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel3.addView(textbox3);

return panel3;
}
public View getPanel6View(final UMActivity context,IBinderGroup binderGroup) {
panel6 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL6
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label8 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL8
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","水平开始位置"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel6.addView(label8);
textbox6 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX6
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入水平位置"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel6.addView(textbox6);

return panel6;
}
public View getPanel7View(final UMActivity context,IBinderGroup binderGroup) {
panel7 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_PANEL7
,"padding-top","5"
,"border-bottom-color","#808080"
,"width","fill"
,"border-bottom-width","2px"
,"padding-bottom","5"
,"weight","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","0"
);
label9 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL9
,"color","#000000"
,"border-right-width","2px"
,"font-size","18"
,"weight","1"
,"valign","center"
,"border-right-color","#c0c0c0"
,"content","垂直开始位置"
,"width","0"
,"font-family","default"
,"layout-type","hbox"
,"halign","right"
,"height","fill"
,"padding-right","10"
);
panel7.addView(label9);
textbox7 = (UMTextbox)ThirdControl.createControl(new UMTextbox(context),ID_TEXTBOX7
,"color","#167ef8"
,"maxlength","256"
,"padding-left","4"
,"font-size","17"
,"weight","2"
,"margin-left","5"
,"background","#ffffff"
,"width","0"
,"font-family","default"
,"placeholder","输入垂直位置"
,"layout-type","hbox"
,"halign","LEFT"
,"height","fill"
);
panel7.addView(textbox7);

return panel7;
}
public View getViewPage0View(final UMActivity context,IBinderGroup binderGroup) {
viewPage0 = (XVerticalLayout)ThirdControl.createControl(new XVerticalLayout(context),ID_VIEWPAGE0
,"background","#F5F5F5"
,"width","fill"
,"valign","TOP"
,"layout-type","vbox"
,"halign","center"
,"onload","action:viewpage0_onload"
,"height","fill"
);
View navigatorbar0 = (View) getNavigatorbar0View((UMActivity)context,binderGroup);
viewPage0.addView(navigatorbar0);
label13 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL13
,"color","#000000"
,"width","fill"
,"font-size","18"
,"valign","center"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"content","打印长度设置"
,"height","50"
);
viewPage0.addView(label13);
View panel8 = (View) getPanel8View((UMActivity)context,binderGroup);
viewPage0.addView(panel8);
label14 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL14
,"color","#000000"
,"width","fill"
,"font-size","18"
,"valign","center"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"content","二维码样式设置"
,"height","50"
);
viewPage0.addView(label14);
View panel1 = (View) getPanel1View((UMActivity)context,binderGroup);
viewPage0.addView(panel1);
View panel2 = (View) getPanel2View((UMActivity)context,binderGroup);
viewPage0.addView(panel2);
View panel3 = (View) getPanel3View((UMActivity)context,binderGroup);
viewPage0.addView(panel3);
label5 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL5
,"color","#000000"
,"width","fill"
,"font-size","18"
,"valign","center"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"content","文本样式设置"
,"height","50"
);
viewPage0.addView(label5);
View panel6 = (View) getPanel6View((UMActivity)context,binderGroup);
viewPage0.addView(panel6);
View panel7 = (View) getPanel7View((UMActivity)context,binderGroup);
viewPage0.addView(panel7);
label10 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL10
,"color","#000000"
,"width","fill"
,"font-size","14"
,"valign","center"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"height","20"
);
viewPage0.addView(label10);
button1 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BUTTON1
,"font-pressed-color","#f2adb2"
,"color","#000000"
,"onclick","action:button1_onclick"
,"font-size","17"
,"valign","center"
,"background","#00ff00"
,"width","300"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"value","保存设置"
,"height","44"
);
viewPage0.addView(button1);
label11 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL11
,"color","#000000"
,"width","fill"
,"font-size","14"
,"valign","center"
,"font-family","default"
,"layout-type","vbox"
,"halign","center"
,"height","20"
);
viewPage0.addView(label11);

return viewPage0;
}
public UMWindow getCurrentWindow(final UMActivity context,IBinderGroup binderGroup) {
TwoDCodeConfig = (UMWindow)ThirdControl.createControl(new UMWindow(context),ID_TWODCODECONFIG
,"layout","vbox"
,"controller","TwoDCodeConfigController"
,"namespace","com.yonyou.ncmm_pac_pda"
,"width","fill"
,"valign","TOP"
,"layout-type","linear"
,"halign","center"
,"height","fill"
);
View viewPage0 = (View) getViewPage0View((UMActivity)context,binderGroup);
TwoDCodeConfig.addView(viewPage0);

return (UMWindow)TwoDCodeConfig;
}

	
	public void actionButton1_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "button1_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.button1_onclick()",UMActivity.getViewId(control),args);
}
public void actionViewpage0_onload(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "viewpage0_onload";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.pageOnload()",UMActivity.getViewId(control),args);
}
public void actionButton0_onclick(View control, UMEventArgs args) {
    args.put("containerName","");
    args.put("language","javascript");
    String actionid = "button0_onclick";
  ActionProcessor.exec(this, actionid, args);
  this.getContainer().exec(actionid, "this.button0_onclick()",UMActivity.getViewId(control),args);
}


}
